﻿@model IEnumerable<SelfManagement.Database.POCO.Senior>

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <p>
        @Html.ActionLink("Create New", "Create")
    </p>
    <table class="table">
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.IsDelete)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.CreatedTime)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.UpdatedTime)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.UpdatedBy)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.CreatedBy)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SeniorName)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SeniorImg)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SeniorQQ)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SeniorPhone)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SeniorWecat)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SeniorSchool)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SeniorEndTime)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SeniorMajor)
            </th>
            <th></th>
        </tr>
    
    @if (Model.IsNotEmpty()) {
        foreach (var item in Model)
        {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.IsDelete)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CreatedTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.UpdatedTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.UpdatedBy)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CreatedBy)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SeniorName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SeniorImg)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SeniorQQ)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SeniorPhone)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SeniorWecat)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SeniorSchool)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SeniorEndTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SeniorMajor)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
                @Html.ActionLink("Details", "Details", new { id = item.Id }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.Id })
            </td>
        </tr>
        }
    }

    </table>
</body>
</html>
